import React from 'react';

import './index.less';

import {render, connect} from 'src/hrpub/common/frame';

import Layout from 'src/hrpub/common/components/Layout';

import BackBtn from 'src/hrpub/common/components/hr-back';
import MainAction from './actions/main';
import FormAction from '../../actions/form';



const {Header, Content} = Layout;

const Wrapper = render({
    actions: {
        mainAct: MainAction,
        formAct: FormAction
    }
})(({props, action, state}) => {
    const {form, emp} = props;

    return (
        <Layout>
            <Header
            showOrgRefer={false}
            showButtons={false}
            customButton={(() => {
            })()}>
            <BackBtn 
                onClick={action.mainAct.goToBackAddPage}
                style={{
                    marginTop: '8px'
                }}
            />
            </Header>
            <Content>
                
                {form.createForm('cardItem', {
                    
                })}
                
            </Content>
        </Layout>
    );
});

export default connect(Wrapper);